home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / suck-2.6 / suck-2 / suck-2.6.3 / killfile.h < prev    next >
Text File  |  1996-03-29  |  845b  |  29 lines

  1. /* this is a structure so can add other kill options later */
  2. typedef struct {
  3.     int hilines;    /* nr of lines max article length */
  4.     int lowlines;    /* nr of lines min article length */
  5.     char *path;    /* which hosts in path to kill */
  6.     char *from;    /* look for name in from to kill */
  7.     char *subj;    /* look for words in subj to kill */
  8.     int nrgrps;    /* max nr of grps (to prevent spams) */
  9.     char quote;    /* character to use as quote (for case compare */
  10. } OneKill, *POneKill;
  11.  
  12. typedef struct {
  13.     OneKill match;
  14.     int delkeep;
  15.     char *group;    /* dynamically allocated */
  16. } Group, *PGroup;
  17.  
  18. typedef struct {
  19.     OneKill master;
  20.     int nrgrps;
  21.     PGroup grps;    /* dynamicly allocated array */
  22. } KillStruct, *PKillStruct;
  23.  
  24. /* function prototypes */
  25. int get_one_article_kill(PMaster, int, PKillStruct);
  26. PKillStruct parse_killfile(void);
  27. void free_killfile(PKillStruct);
  28.  
  29.